<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>nav</title>
    <link rel="stylesheet" href="./css/reset.css">
    <style>
        body{
            background-color: #bfa;
        }

        .left-nav {
            width: 190px;
            height: 450px;
            padding: 10px 0;
            background-color: #fefefe;
            margin: 25px auto;

        } 

        .left-nav .item{
            height: 25px;
            /* 要让一个文字在父元素中垂直居中，只需要将父元素的line-height设置为一个和父元素height相等的值 */
            line-height: 25px;
            padding-left: 10px;
        }

        .item:hover{
            background-color: #d9d9d9;
        }

        .item a{
            /* 设置字体大小 */
            font-size: 14px;
            /* 设置字体颜色 */
            color:#333;
            /* 去除下划线 */
            text-decoration: none;

        }
        
        .item a:hover{
            color:#c81623;
        }

        .item span{
            font-size: 10px;
            padding: 3px;
        }
    </style>
</head>

<body>
    <nav class="left-nav">
        <div class="item">
            <a href="javascipt:;">家用电器</a>
        </div>
        <div class="item">
            <a href="">手机</a><span>/</span><a href="">运营商</a><span>/</span><a href="">数码</a>
        </div>
        <div class="item">
            <a href="">电脑</a><span>/</span><a href="">办公</a>
        </div>
        <div class="item">
            <a href="">家居</a><span>/</span><a href="">家具</a><span>/</span><a href="">家装</a><span>/</span><a href="">厨具</a>
        </div>
        <div class="item">
            <a href="">男装</a>/<a href="">女装</a>/<a href="">童装</a>/<a href="">内衣</a>
        </div>
        <div class="item">
            <a href="">家用电器</a>
        </div>
        <div class="item">
            <a href="">手机</a>/<a href="">运营商</a>/<a href="">数码</a>
        </div>
        <div class="item">
            <a href="">电脑</a>/<a href="">办公</a>
        </div>
        <div class="item">
            <a href="">家居</a>/<a href="">家具</a>/<a href="">家装</a>/<a href="">厨具</a>
        </div>
        <div class="item">
            <a href="">男装</a>/<a href="">女装</a>/<a href="">童装</a>/<a href="">内衣</a>
        </div>
        <div class="item">
            <a href="">家用电器</a>
        </div>
        <div class="item">
            <a href="">手机</a>/<a href="">运营商</a>/<a href="">数码</a>
        </div>
        <div class="item">
            <a href="">电脑</a>/<a href="">办公</a>
        </div>
        <div class="item">
            <a href="">家居</a>/<a href="">家具</a>/<a href="">家装</a>/<a href="">厨具</a>
        </div>
        <div class="item">
            <a href="">男装</a>/<a href="">女装</a>/<a href="">童装</a>/<a href="">内衣</a>
        </div>
        <div class="item">
            <a href="">家用电器</a>
        </div>
        <div class="item">
            <a href="">手机</a>/<a href="">运营商</a>/<a href="">数码</a>
        </div>
        <div class="item">
            <a href="">电脑</a>/<a href="">办公</a>
        </div>
   
    </nav>
</body>

</html>